package com.example.mybatisplus.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName(value ="more")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class More {
    @TableId(value = "more_id")
    private Long id;
    private String moreName;
    private Date moreCreateTime;
    @TableField(value = "one_id")
    private One one;

    @Override
    public String toString() {
        return "More{" +
                "id=" + id +
                ", moreName='" + moreName + '\'' +
                ", moreCreateTime=" + moreCreateTime +
                ",One=自己拿"+
                '}';
    }
}
